﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WeChatJumpGameHelper
{
 public   class FileFolderHelper
    {
        //清空文件夹
        public static void ClearFolder(String folderPath)
        {
            DirectoryInfo dir = new DirectoryInfo(folderPath);
            if (dir.Exists)
            {
                FileInfo[] childs = dir.GetFiles();
                foreach (FileInfo child in childs)
                {
                    try
                    {
                        child.Delete();
                    }
                    catch
                    {
                    }
                }
            }
        }
    }
}
